package org.haq.bae.datamodel;

import com.google.gson.GsonBuilder;

/**
 * AbstractModel
 * User: Abiel
 * Date: 5/1/12
 * Time: 8:40 PM
 * Description:
 */
public abstract class AbstractModel {

    protected String id;

    public abstract String getId();

    public abstract void setId(String id);

    public String toJson() {
        com.google.gson.Gson gson = new GsonBuilder().setPrettyPrinting().create();
        return gson.toJson(this);
    }

}
